/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.ingsoc2;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author sebastian
 */
public class ConnectionHSQL implements ConnectionFactory{

/**
 * Constructor
 */
    public ConnectionHSQL()  {
    }
/**
 * 
 * @param URL
 * @param usr
 * @param psw
 * @return
 * @throws SQLException 
 */    
    public Connection createConn(String URL, String usr, String psw) throws SQLException {
        Connection conexion;

        conexion = DriverManager.getConnection(URL, usr, psw);
        return conexion;
    }


}
